def sequence(numb):
    for i in range(numb):
        i=i*3
        yield i
g=sequence(3)
next(g)
next(g)
next(g)
def sequence(numb):
    for i in range(numb):
        i=i*3
        yield i
g=sequence(3)
for i in g:
    print(i)